import request from '@/utils/request'

export function getAllPictureBooks(query) {
  return request({
    url: '/picture-books/search',
    method: 'get',
    params: query
  })
}

export function addPictureBook(data) {
  return request({
    url: '/picture-books/addPictureBook ',
    method: 'post',
    data: data
  })
}

export function delMenu(id) {
  return request({
    url: '/picture-books/' + id,
    method: 'delete'
  })
}

export function updatePictureBook(data) {
  return request({
    url: '/picture-books/'  + data.id,
    method: 'put',
    data: data
  })
}
